class WatermarkSetting {
  String absoluteResPath;
  /// watermark resource id
  int resId;
  /// define the watermark location on the screen
  final WATERMARK_LOCATION location;
  /// define the relative size of watermark on the screen
  final WATERMARK_SIZE size;
  /// the transparency of water on the screen, the value is [0..255]
  final int alpha;

  WatermarkSetting.fromPath(this.absoluteResPath, this.location, this.size, this.alpha );
  WatermarkSetting.fromResource(this.resId, this.location,  this.alpha, { this.size });

  Map<String, dynamic> toJson() {
    return {
      "absoluteResPath": absoluteResPath,
      "resId": resId,
      "location": location?.index,
      "size": size?.index,
      "alpha": alpha,
    };
  }
}

enum WATERMARK_LOCATION {
  NORTH_EAST,
  NORTH_WEST,
  SOUTH_EAST,
  SOUTH_WEST 
}

enum WATERMARK_SIZE {
  LARGE,
  MEDIUM,
  SMALL,
}